package com.one.square.user.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.one.square.core.entity.SysRole;
import com.one.square.user.server.mapper.SysRoleMapper;
import com.one.square.user.server.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cwm
 * @Description
 * @date 2021/10/21 下午12:35
 * @Version 1.0
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {

    @Override
    public List<SysRole> findByUserId(Long userId) {
        return this.baseMapper.findByUserId(userId);
    }
}
